<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>我要购买</title>
<%@include file="../collect/meta.jsp"%>
<link rel="stylesheet" href="css/radius.css" type="text/css"></link>
<link rel="stylesheet" href="css/table.css" type="text/css"></link>
<script type="text/javascript" src="${ctx}/js/returnTop.js"></script>
</head>
<body lang="zh-cn">
	<div class="wrapper">
		<c:import url="/collect/top.jsp"></c:import>
		<div class="main-container" id="main-container">
			<div class="main-container-inner">
				<c:import url="/collect/left.jsp"></c:import>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<ul class="breadcrumb">
							<li><i class="icon-home home-icon"></i>商城</li>
							<li>我要购买</li>
						</ul>
						<!-- .breadcrumb -->
					</div>
					<div class="page-content">
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<table id="table_bug_report"
									class="table table-striped table-bordered table-hover">
									<tr>
										<th>商品名</th>
										<th>数量</th>
										<th>价格</th>
										<th>时效（天）</th>
										<th>说明</th>
										<th>操作</th>
									</tr>
									<c:forEach items="${tariffs}" var="tariff" varStatus="status">
										<c:if test="${tariff.goods.goodsShow == 1 }">
											<tr>
												<td>${tariff.goods.goodsName }</td>
												<td>
													<c:choose>
														<c:when test="${tariff.amount == 0 }">/</c:when>
														<c:otherwise>${tariff.amount }</c:otherwise>
													</c:choose>
												</td>
												<td>${tariff.fee}</td>
												<td>
													<c:choose>
														<c:when test="${tariff.validDays == 0 }">永久有效</c:when>
														<c:otherwise>${tariff.validDays }</c:otherwise>
													</c:choose>
												</td>
												<td>${tariff.description }</td>
												<td>
													<a href="orderInfoaction!addMyOrderInfo?tariff.tariffId=${tariff.tariffId }"
														class="btn btn-primary radius btn-sm">购买</a>
												</td>
											</tr>
										</c:if>
									</c:forEach>
								</table>
							</div>
							<!-- /.col -->
						</div>
						<!-- /.row -->
					</div>
					<!-- /.page-content -->
				</div>
				<!-- /.main-content -->
			</div>
			<!-- /.main-container-inner -->
			<a href="#" id="btn-scroll-up"
				class="btn-scroll-up btn btn-sm btn-inverse"
				style="position:fixed;bottom:0;"> <i
				class="icon-double-angle-up icon-only bigger-110"></i> </a>
		</div>
		<div class="push"></div>
	</div>
	<c:import url="/collect/down.jsp"></c:import>
	<script type="text/javascript">
		$(document).ready(function() {
			//防收回；会员管理：$查看会员
			$('.zfb > ul').show();
			$('.zfb > ul > li a').eq(0).css("color", "red");
		});
	</script>
</body>
</html>
